<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/3/6
  Time: 16:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>欢迎刘启明大哥</title>
</head>
<body>
    <form action="update" method="post">
        <table align="center">
            <tr>
                <td colspan="2" align="center"><h2>详细信息</h2></td>
            </tr>
            <%--<td colspan="2" align="right">
                <font color="red">${requestScope.msg}</font>
            </td>--%>
            <tr>
                <td>ID:</td>
                <td><input type="text" name="id" value="${sessionScope.userInfo.id}" disabled/> </td>
            </tr>
            <tr>
                <td>用户名:</td>
                <td><input type="text" name="username" value="${sessionScope.userInfo.username}" disabled/> </td>
            </tr>
            <tr>
                <td>性别:</td>
                <td><input type="text" name="gender" value="${sessionScope.userInfo.gender.equals('F')?'女':'男'}"/> </td>
            </tr>
            <tr>
                <td>年龄:</td>
                <td><input type="text" name="age" value="${sessionScope.userInfo.age}"/> </td>
            </tr>
            <tr>
                <td>邮箱:</td>
                <td><input type="text" name="email" value="${sessionScope.userInfo.email}"/> </td>
            </tr>
            <tr>
                <td colspan="2" align="right">
                    <a href="resetPasswordForm">重设密码</a><input type="submit" value="修改"/>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
